]>
Commit | Line | Data |
---|---|---|
1b85f723 RBR |
1 | // |
2 | // Date+format.swift | |
3 | // Map | |
4 | // | |
5 | // Created by Ruben Beltran del Rio on 2/1/21. | |
6 | // | |
7 | ||
8 | import Foundation | |
9 | ||
10 | extension Date { | |
5e8ff485 RBR |
11 | func format() -> String { |
12 | let formatter = DateFormatter() | |
13 | formatter.dateStyle = .short | |
14 | formatter.timeStyle = .medium | |
15 | return formatter.string(from: self) | |
16 | } | |
1b85f723 | 17 | } |